// 获取下拉
export const getDictOptionList = (dict) => {
  return Object.values(dict)
}

// 匹配名称
export const getTitleByValue = (dictList, value) => {
  for (let i = 0; i < dictList.length; i++) {
    if (dictList[i].value === value) return dictList[i].title
  }
  return undefined
}

export default getDictOptionList
